﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Lucas.Wendell.PI.Model.Enum;
using Senac.NetMob.Models;

namespace Lucas.Wendell.PI.Model
{
    [Table("Tb_Imovel")]
    public class Imovel : BaseModel
    {
        public int? Andar { get; set; }

        [Required]
        public decimal AreaBruta { get; set; }

        [Required]
        public decimal AreaUtil { get; set; }

        public int? Elevador { get; set; }

        [Required]
        public int Frentes { get; set; }

        [Required]
        [StringLength(150, ErrorMessage = NetImobiliariaConstants.MESSAGE_ERROR_STRING_LENGTH)]
        public string Localizacao { get; set; }

        public bool Ocupado { get; set; }

        public decimal? ValorCondominio { get; set; }

        [Required]
        [DataType(DataType.Currency)]
        public decimal ValorImovel { get; set; }

        [Required]
        public TipoGaragemEnum Garagem { get; set; }

        [Required]
        public TipoNegociadorEnum Negociador { get; set; }

        [Required]
        public TipoOrientacaoSolarEnum OrientacaoSolar { get; set; }

        public virtual IList<Comodo> ComodoL { get; set; }

        public virtual IList<ImovelEspecificacao> EspecificacaoL { get; set; }
    }
}
